//package com.xc.hotelmgr.webapi.modules.job.task.impl;
//
//import com.alibaba.fastjson.JSON;
//import com.alibaba.fastjson.JSONObject;
//import com.xc.hotelmgr.webapi.common.utils.HttpClient;
//import com.xc.hotelmgr.webapi.modules.job.entity.UpDownList;
//import com.xc.hotelmgr.webapi.modules.job.task.ITask;
//import com.xc.hotelmgr.webapi.modules.op.service.HtlGroupService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Component;
//
//import java.util.List;
//
//@Component("htlUpDown")
//public class UpDownTask implements ITask {
//
//    @Autowired
//    private HtlGroupService htlGroupService;
//
////    @Value("${xc.op.service.url.mt}")
////    private String mtService;
//
//    @Override
//    public void run(String params) {
////        JSONObject jsonObject = JSON.parseObject(params);
////        Integer groupId = jsonObject.getInteger("groupId");
////        Integer storeId = jsonObject.getInteger("storeId");
////        Integer status = jsonObject.getInteger("status");
////        List<Long> hotelList = htlGroupService.selectByGIdSId(groupId, storeId);
////        if(!hotelList.isEmpty()) {
////            UpDownList upDownList = new UpDownList();
////            upDownList.setHotelList(hotelList);
////            upDownList.setStatus(status);
////            upDownList.setStoreId(storeId);
////            HttpClient.doPost(upDownList, mtService + "/hotel/state");
////            if(status==-2) {
////                System.out.println("执行下架");
////            }
////            if(status==0) {
////                System.out.println("执行上架");
////            }
////        }
//    }
//}
